import request from '@/utils/request'

// 查询房型媒体关联列表
export function listRoomMediaRel(query) {
  return request({
    url: '/manage/roomMediaRel/list',
    method: 'get',
    params: query
  })
}

// 查询房型媒体关联详细
export function getRoomMediaRel(roomTypeId) {
  return request({
    url: '/manage/roomMediaRel/' + roomTypeId,
    method: 'get'
  })
}

// 新增房型媒体关联
export function addRoomMediaRel(data) {
  return request({
    url: '/manage/roomMediaRel',
    method: 'post',
    data: data
  })
}

// 修改房型媒体关联
export function updateRoomMediaRel(data) {
  return request({
    url: '/manage/roomMediaRel',
    method: 'put',
    data: data
  })
}

// 删除房型媒体关联
export function delRoomMediaRel(roomTypeId) {
  return request({
    url: '/manage/roomMediaRel/' + roomTypeId,
    method: 'delete'
  })
}
